package com.chixing.day18_thread.word;
public class SaleTest {
    public static void main(String[] args) {
        Sale sale = new Sale();

        for (int i=0;i<10;i++){
            Thread thread1 = new Thread(new PublicSale(sale),"窗口1");
            Thread thread2 = new Thread(new PublicSale(sale),"窗口2");
            Thread thread3 = new Thread(new PublicSale(sale),"窗口3");
            thread1.start();
            thread2.start();
            thread3.start();


        }
    }
}
